/* BODY */

body {
    background-color: rgb(253, 227, 237);
    margin: 0;
    padding: 0;
    height: 100%;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(238, 133, 181) #ffccdf;
}

/* Chrome, Edge y Safari */
*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: rgb(150, 54, 103);
}

*::-webkit-scrollbar-thumb {
    background-color: rgb(150, 54, 103);
    border-radius: 4px;
}

/* BODY */

/* HEADER */

header {
    background-color: rgb(255, 189, 217);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
}

img {
    height: 55px; 
}

i {
    font-size: 30px;
    color: rgb(51, 51, 51);
}

.redsocial {
    display: flex;
    gap: 25px;
}

header i:hover {
    color: rgb(150, 54, 103)
}

/* Barra de búsqueda */
.search-bar {
    display: flex;
}

.search-bar input {
    padding: 10px 15px;
    border-radius: 20px 0 0 20px;
    border: 2px solid rgb(238, 133, 181);
    outline: none;
    width: 220px;
    font-size: 15px;
    font-family: Bahnschrift;
}

.search-bar button {
    padding: 10px 14px 10px 10px;
    border: none;
    background-color: rgb(238, 133, 181);
    color: white;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    font-size: 16px;
}

.search-bar button:hover {
    background-color: rgb(238, 133, 181);
}

#boton {
    font-size: 20px;
}


/* HEADER */



/* SECTION */

.tittle {
    font-family: 'COCOGOOSE';
    color: rgb(255 229 240);
    text-shadow: rgb(238, 133, 181) -5px 2px 2px;

    text-align: center;
    font-size: 45px;
    background-color: rgb(255, 189, 217);
    padding: 5.5px;
    margin-left: 25%;
    margin-right: 25%;
    border-radius: 20px;
    box-shadow: 6px 5px 10px rgba(150, 54, 104, 0.753);
}

.carta {
    background-image: linear-gradient(
        0deg,
        #d1a0b925,
        #d1a0b925
    )
    ,url(../farma/fondo.PNG);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    border-radius: 15px;
    box-shadow: inset 0px 0px 20px 0px rgb(150 54 103 / 45%);
    padding: 40px;
    width: 130px;
    height: 155px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    transition: box-shadow 0.3s ease, filter 0.3s ease;
}

h2 {
    font-family: Bahnschrift;
    text-align: center;
    font-size: 20px;
    color: rgb(255, 255, 255);
    text-shadow: 3px 2px 4px rgb(150, 54, 103);
    line-height: 1.2;
    max-height: 2.4em;
    text-overflow: ellipsis;
}

.programas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    margin: 0 auto;
    margin-left: 12%;
    margin-right: 12%;
    margin-bottom: 5%;
    margin-top: 20px;
}

.carta:hover {
    box-shadow: inset 0px 0px 20px 11px rgba(150, 54, 103, 0.5);}

.apartados button {
    font-family: Bahnschrift;
    text-shadow: 2px 2px 10px rgb(150, 54, 103);
    color: rgb(255, 255, 255);
    padding: 10px;
    background-color: rgb(255, 189, 217);
    border-radius: 15px;
    border: 0;
    box-shadow: 2px 2px 10px rgb(150, 54, 103);
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.apartados button:hover {
    background-color: rgb(238, 133, 181);
}

.apartados {
    flex: 1;
}

/* CARRUSEL HORIZONTAL - PRODUCTOS OCULTOS A LOS COSTADOS */
.carrusel-container {
    position: relative;
    max-width: 70%;
    margin: 30px auto;
    overflow: visible; /* Oculta lo que sobresalga */
    display: flex;
    justify-content: center;
    border: 0px solid rgb(238, 133, 181);
    border-radius: 20px;
}

.carrusel-wrapper {
    position: relative;
    overflow: hidden; /* Importante: visible para que se vean parcialmente */
}

.carrusel-inner {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 20px 10px;
}

/* Las tarjetas que están fuera se ven parcialmente */
.carrusel-container .tarjeta {
    flex: 0 0 auto; /* No se estiran */
    opacity: 1.7; /* Las de los extremos más transparentes */
    transform: scale(0.95);
    transition: all 0.3s ease;
    width: 14%;
}

/* Tarjeta central (la que está en foco) */

/* Botones de navegación más grandes y llamativos */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 240, 246, 0.95);
    border: 3px rgb(238, 133, 181);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 20;
    transition: all 0.3s;
    box-shadow: -5px 5px 15px rgba(150, 54, 104, 0.4);
    margin-left: 20px;
    margin-right: 20px;
}

.carrusel-btn:hover {
    background:rgb(255, 189, 217);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: -7px 7px 20px rgba(150, 54, 104, 0.6);
}

.carrusel-btn.prev {
    left: 0;
}

.carrusel-btn.next {
    right: 0;
}

/* Efecto de desvanecimiento en los bordes */
.carrusel-container::before,
.carrusel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 15;
    pointer-events: none;
    border: 0px solid rgb(238, 133, 181);
    border-radius: 20px;

}

.carrusel-container::before {
    left: 0;
    background: linear-gradient(to right, #ffccdf, rgba(255, 255, 255, 0));
}

.carrusel-container::after {
    right: 0;
    background: linear-gradient(to left, #ffccdf, rgba(255, 255, 255, 0));
}

.fas{
    color: rgb(238, 133, 181);
}

/* Indicadores de posición */
.carrusel-indicadores {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
}

.carrusel-indicador {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(255, 240, 246);
    border: 2px solid rgb(238, 133, 181);
    cursor: pointer;
    transition: all 0.3s;
}

.carrusel-indicador.active {
    background: rgb(238, 133, 181);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(238, 133, 181, 0.7);
}

.destacado {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    margin: 20px;
}

.tarjeta {
    transition: all 0.3s ease-in-out;
    background: rgb(255, 240, 246);
    border: 0;
    border-radius: 15px;
    padding: 20px;
    width: 245px;
    box-shadow: -10px 6px 20px rgba(150, 54, 104, 0.37);
    margin: 0;
    cursor: pointer;
}

.contenido {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
}

.tarjeta h2 {
    font-family: bahnschrift, solid;
    font-size: 115%;
    color: rgb(238, 133, 181);
    text-shadow: 2px 2px 2px rgb(150, 54, 103);
    margin: 2px;
    padding: 5px;
}

.tarjeta p {
    font-family: bahnschrift, solid;
    font-size: 100%;
    color: rgb(51, 51, 51);
    text-align: center;
    margin: 2px;
    padding: 5px;    
}

.imagen {
    height: 95px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 10px;
}

.imagen img {
    height: 100%;
    object-fit: contain;
    display: block;
}


.tarjeta:hover {
    transform: scale(1.05);
 }

.text-dest {
    font-family: 'COCOGOOSE';
    color: rgb(238, 133, 181);
    text-shadow: rgba(150, 54, 104, 0.753) -3px 1px 2px;
    text-align: center;
    padding: 5.5px;
}

/* SECTION */

/* FOOTER */

footer {
    background-color: rgb(255, 189, 217);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 25px;
}

footer img {
    height: 70px;
    width: auto;
}

.direccion {
    gap: 50px;
    border-top: 2px solid #ffffff;
    padding-top: 10px;
    display: flex;
    align-items: center;
    padding-left: 30px;
    padding-right: 30px;
}

.contacto {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
}

.numero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contacto-rrss {
    display: flex;
    gap: 50px;
    padding-bottom: 10px;
}

.titulo {
    color: rgb(150, 54, 103);
}

.rrss {
    gap: 10px;
    display: flex;
    flex-direction: column;
}

p {
    font-family: bahnschrift, solid;
    color:rgb(255, 255, 255);
    text-align: center;
    margin: 2px;
    font-size: 18px;
}

a {
    text-decoration: none;
    color:rgb(255, 255, 255);
}

a:hover {
    color: rgb(150, 54, 103)
}

footer i {
    color:rgb(255, 255, 255);
}

footer i:hover {
    color: rgb(150, 54, 103);
}

@media (max-width: 650px) {
    footer {
        flex-direction: column;
        text-align: center;
    }

    .direccion, .contacto, .contacto-rrss {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .direccion p, .contacto p, .contacto-rrss p {
        text-align: center;
    }

    footer img {
        height: 50px;
        margin-bottom: 10px;
    }
}

/* FOOTER */


@media (max-width: 768px) {
    
    /* HEADER */
    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    header img {
        height: 3rem;
    }

    .redsocial i {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        font-size: 1.6rem;
    }

    /* BARRA DE BÚSQUEDA */
    .search-bar {
        width: 100%;
        margin: 1rem 0;
        display: flex;
        justify-content: center;
    }

    .search-bar input {
        width: 90%;
        font-size: 1rem;
    }

    /* TÍTULOS */
    .tittle {
        font-size: clamp(1.4rem, 5vw, 2rem);
        margin: 1rem 10%;
    }
    
    .text-dest {
        font-size: 150%;
    }
    
    .carta {
        width: 30vw;
        max-width: 150px;
        height: 85px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
}

    .carta h2 {
        font-size: 0.7rem;
        margin: 0px 0 10px 0;
        line-height: 1.1;
        max-height: 35px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        word-break: break-word;
        width: 130%;
    }
    
    .apartados button {
        font-size: 80%;
    }
    
    .programas {
        margin: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .tarjeta {
        width: 25vw;
        height: auto;
    }
    
    .tarjeta h2 {
        font-size: 75%;
        text-shadow: none;
        font-family: cocogoose;
    }
    
    .imagen {
        height: 105px;
    }
    
    .tarjeta p {
        font-size: 90%;
    }
    
    .destacados {
        margin: 10px;
    }
    
    .carrusel-container {
        padding: 0 50px;
    }
    
    .carrusel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .carrusel-container::before,
    .carrusel-container::after {
        width: 50px;
    }
    
    .tarjeta {
        width: 220px; /* Un poco más pequeño en móvil */
    }
}

@media (max-width: 480px) {
    .carrusel-container {
        padding: 0 40px;
    }
    
    .carrusel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .carrusel-container::before,
    .carrusel-container::after {
        width: 40px;
    }
    
    .tarjeta {
        width: 200px;
    }
}































